$("form").on("submit",function(){

        var formData=$(this).serialize();
        console.log(formData);

        $.ajax({
            url:"/api/login",//http://api.botue.com/login
            type:"post",
            data:formData,
            success:function(){

            }
        });

        return false;//阻止自动提交表单
    })